// static只可以类调用，且不可以继承
class Persion{
  constructor(name){
    this.name = name
  }

  say(){
    console.log(`hi,my name is ${this.name}`)
  }
  static create(name){
    return new Persion(name)
  }
}
const p = Persion.create('Lisa')
p.say(0)